import { ApiProperty } from '@nestjs/swagger'
import { IsDefined, IsNotEmpty, IsNumber, IsString } from 'class-validator'

export class BatchDeleteDto {
  @IsDefined()
  @IsNotEmpty()
  @IsNumber({}, { each: true })
  ids: number[]
}

export class DeleteDto {
  @ApiProperty({ description: 'ID,多个用逗号分隔' })
  @IsString()
  @IsNotEmpty()
  ids: string
}
